Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move AlgorithmIdentifier values to here from rustls-webpki #67

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ctz
Copy link
Member

@ctz ctz commented Dec 23, 2024

Any downstream crate defining a custom rustls::CryptoProvider currently needs to take a dependency on rustls-webpki to reuse these values (alternatively they can redefine these values, but meh.)

Moving them here removes that need, and eliminates another reason for people to depend on rustls-webpki directly.

fixes #27

ctz added 6 commits December 23, 2024 13:18
Any downstream crate defining a custom `rustls::CryptoProvider`
currently needs to take a dependency on `rustls-webpki` to reuse
these values (alternatively they can redefine these values, but meh.)

Moving them here removes that need.
> 'go get' is no longer supported outside a module.
> To build and install a command, use 'go install' with a version,
> like 'go install example.com/cmd@latest'
The intention here is to make it easy to cross-reference these
values with other sources of information, and to "lift the veil"
on what these things actually are and are not.

Some of these are trivial (ed25519) while others reveal their true
horror (RSA-PSS).  For the latter, include a reference to their
defining RFC, and decorate the context-specific fields with their
name in comments.
@djc
Copy link
Member

djc commented Dec 23, 2024

How about we move AlgorithmIdentifier into the new module, with a top-level re-export for compatibility?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Considering adding constant for the PKIX Algorithm Identifier
3 participants